package tunafish2k.rpgex.registries;

import net.minecraft.item.Item;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;
import tunafish2k.rpgex.RpgEX;
import tunafish2k.rpgex.items.BlowPipeItem;
import tunafish2k.rpgex.items.StoneDartItem;

public class ItemRegistry {
    public static Item STONE_DART = new StoneDartItem();
    public static Item BLOW_PIPE = new BlowPipeItem();

    public static Item register(String id, Item item) {
        return Registry.register(Registries.ITEM, Identifier.of(RpgEX.MOD_ID, id), item);
    }

    public static void registerAll() {
        register("stone_dart", STONE_DART);
        register("blow_pipe", BLOW_PIPE);
    }
}
